package dao;

import entity.UserRole;

import java.util.Collection;
import java.util.List;

/**
 * Created by asus on 2017/6/22.
 */
public interface UserRuleDAO  {
    public void updateUserRole(UserRole userRole)throws Exception;
    public void saveUserRole(UserRole userRole) throws Exception;
    public UserRole findUserRoleById(Long id);
    public List<UserRole> findUserRoles(int page, int size);
    public List<UserRole> findUserRoleByUserId(Long userId);
    public void saveUserRoles(Collection<UserRole> userRoles);
    public void delete(Long id);
}
